package com.lp.biz.train.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

import static com.lp.common.constant.CommonConstant.DATE_TIME;
import static com.lp.common.constant.CommonConstant.TIMEZONE;

/**
 * @program: backend
 * @description:
 * @author: Ke.Song
 * @since: 2024-05-30 23:10:55
 */
@Data
public class ClassVoteCreate {

    @NotNull(message = "奖励数量不能为空")
    private Integer topNum;

    @NotNull(message = "开始时间不能为空")
    @JsonFormat(timezone = TIMEZONE, pattern = DATE_TIME)
    private LocalDateTime startAt;

    @NotNull(message = "结束时间不能为空")
    @JsonFormat(timezone = TIMEZONE, pattern = DATE_TIME)
    private LocalDateTime endAt;
}
